package cn.ggsaas.base.serializer;

import com.fasterxml.jackson.annotation.JacksonAnnotation;
import cn.ggsaas.base.enums.DesensitizeEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 脱敏注解
 *
 * @author liyuzhen
 * @date 2019/9/24 11:35 上午
 */

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotation
public @interface DesensitizeValue {
    DesensitizeEnum type() default DesensitizeEnum.NAME;
}
